<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>
<%@ taglib prefix="nested" uri="http://struts.apache.org/tags-nested" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title><%=request.getParameter("mid") %>님의 정보입니다.</title>
<link href="<%=request.getContextPath() %>/common/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin: 0;" onload="setHeight()">
<script type="text/javascript">
	function setHeight(){
		window.resizeTo(document.body.scrollWidth,document.body.scrollHeight+80);
	}
</script>

<html:form action="viewaction.do">
<table style="border: 0px solid #666666;width: 100%; text-align: center;">
	<tr>
		<td align="center">

<table style="width: 400px;border: 1px solid #6383c2;">

	<tr><td colspan="2" style="background-color: #6383c2;text-align: center;font-weight: bold;height: 30px;border-bottom: 1px solid #dddddd;color: white;">
		회원정보</td></tr>

	<tr><td class="tdviewform">아이디</td>
		<td class="tdviewform2"><bean:write name="memberForm" property="mid"/></td></tr>
		
	<tr><td class="tdviewform">이름</td>
		<td class="tdviewform2"><bean:write name="memberForm" property="mname"/></td></tr>

	<tr><td class="tdviewform">레벨</td>
		<td class="tdviewform2"><bean:write name="memberForm" property="lvno"/></td></tr>

<logic:notEmpty name="memberForm" property="memail">
	<tr><td class="tdviewform">이메일</td>
		<td class="tdviewform2"><bean:write name="memberForm" property="memail"/></td></tr>
</logic:notEmpty>

<logic:notEmpty name="memberForm" property="mbirth">
	<tr><td class="tdviewform">생일</td>
		<td class="tdviewform2"><bean:write name="memberForm" property="mbirth"/></td></tr>
</logic:notEmpty>
		
	<tr><td class="tdviewform">회원가입일</td>
		<td class="tdviewform2"><bean:write name="memberForm" property="mregdate"/></td></tr>

<logic:notEmpty name="memberForm" property="maddressh">
	<tr><td class="tdviewform">집주소</td>	
		<td class="tdviewform2"><bean:write name="memberForm" property="maddressh"/></td></tr>
</logic:notEmpty>
		
<logic:notEmpty name="memberForm" property="mphoneh">
	<tr><td class="tdviewform">휴대전화</td>
		<td class="tdviewform2"><bean:write name="memberForm" property="mphoneh"/></td></tr>
</logic:notEmpty>

<logic:notEmpty name="memberForm" property="maddresso">
	<tr><td class="tdviewform">사무실주소</td>
		<td class="tdviewform2"><bean:write name="memberForm" property="maddresso"/></td></tr>
</logic:notEmpty>

<logic:notEmpty name="memberForm" property="mphoneo">
	<tr><td class="tdviewform">사무실전화</td>
		<td class="tdviewform2"><bean:write name="memberForm" property="mphoneo"/></td></tr>
</logic:notEmpty>

<logic:notEmpty name="memberForm" property="mintro">
	<tr><td class="tdviewform">자기소개</td>
		<td class="tdviewform2"><PRE/><bean:write name="memberForm" property="mintro"/></td></tr>
</logic:notEmpty>

<logic:notEmpty name="memberForm" property="mphotosfn">
	<tr><td class="tdviewform">사진</td>
		<td class="tdviewform2"><img name="photo" src="<%=request.getContextPath() %>/uploadfiles/<bean:write name="memberForm" property="mphotosfn"/>" onload="resizeImage()"/>
		</td></tr>		
</logic:notEmpty>

</table>
<img src="<%=request.getContextPath() %>/common/image/close.jpg" border="0" onclick="self.close()" onmouseover="javascript:this.style.cursor='hand';">
		</td>
	</tr>
</table>
</html:form>

<script type="text/javascript">
<!--
	function resizeImage(){
		var w = document.photo.width;
		if(w>300){
			document.getElementById('photo').width = 300;
		}
	}
//-->
</script>
</body>
</html>